<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Trinhdochuyenmon_model extends CI_Model {
	public $table = 'trinhdochuyenmon';

	function getAll(){
		$query = $this->db->select('*')->from($this->table)->where('del_flg', 0)->get();
		$results = $query->result();
		$listTrinhDoChuyenMon = array();
		foreach($results as $k => $v ){
			$listTrinhDoChuyenMon[$v->id] = $v->name;
		}
		return $listTrinhDoChuyenMon;
	}
}